﻿using Domain.Model.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ValidBox4Mvc.ValidRules;

namespace Domain.Model
{
    /// <summary>
    /// 提现记录
    /// </summary>
    public class Withdraw:Entity
    {
        /// <summary>
        /// 会员Id
        /// </summary>
        public Guid MemberId { get; set; }
        /// <summary>
        /// 会员编号
        /// </summary>
        [Length(50)]
        public string MemberNo { get; set; }
        /// <summary>
        /// 银行名称
        /// </summary>
        [Length(30)]
        public string BankName { get; set; }
        /// <summary>
        /// 卡号
        /// </summary>
        [Length(50)]
        public string BankNo { get; set; }
        /// <summary>
        /// 户主
        /// </summary>
        [Length(30)]
        public string BankUser { get; set; }
        /// <summary>
        /// 开户地址
        /// </summary>
        [Length(100)]
        public string Address { get; set; }
        /// <summary>
        /// 体现类型
        /// </summary>
        [Length(20)]
        public string WithdrawType { get; set; }
        /// <summary>
        /// 手续费
        /// </summary>
        public decimal Poundage { get; set; }
        /// <summary>
        /// 提现金额
        /// </summary>
        [Required]
        public decimal WithdrawAmount { get; set; }
        /// <summary>
        /// 实际金额
        /// </summary>
        [Required]
        public decimal NowAmount { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public State state { get; set; }
    }
}
